import request, { getWebPath } from '@/utils/request';
import { isFakeData } from '../utils/utils';

export default async function queryError(code) {
  if (isFakeData()) {
    return request(`/api/${code}`);
  }
  return request(getWebPath(`/api/trigger/${code}`));
}
